<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>
	<body>
		<select name="website" onchange="gotowebsite()">
			<option value="1">请选择网站</option>
			<option value="2">百度</option>
			<option value="3">搜狗</option>
			<option value="4">新浪</option>
			<option value="5">搜狐</option>
		</select>
	</body>
	<script type="text/javascript">
		function gotowebsite(){
			var siteurl = document.getElementsByName('website')[0].value
			
			if (siteurl == 2) {
				location.href  = 'https://www.baidu.com/';
			}
			else if (siteurl == 3) {
				location.href = 'https://www.sogou.com/';
			}
			else if (siteurl == 4) {
				location.href = 'https://www.sina.com';
			}
			else if (siteurl == 5) {
				location.href = 'https://www.sohu.com/';
			}
		}
	</script>
</html>
